
import re
from typing import List

class Solution:
    def findRepeatNumber(self, nums: List[int]) -> int:
        nums = sorted(nums)

        for index, n in enumerate(nums):
            if index==0:
                continue
            if n==nums[index-1]:
                return n

        return -1